/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.tooltipContainer {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translate(-50%, -100%);
  background-color: var(--ifm-color-emphasis-900);
  border-radius: 4px;
  color: var(--ifm-color-emphasis-0);
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  text-align: center;
  z-index: 100;
  white-space: nowrap;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: var(--ifm-color-emphasis-900) transparent transparent transparent;
}
